package com.jeequan.jeepay.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jeequan.jeepay.core.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

 /**
 * 供应商列表;
 * @author : wondream322@gmail.com
 * @date : 2023-8-19
 */
@ApiModel(value = "供应商列表",description = "")
@TableName("pay_channel")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class PayChannel extends BaseModel implements Serializable,Cloneable{
    
     //gw
     public static final LambdaQueryWrapper<PayMemberDO> gw(){
         return new LambdaQueryWrapper<>();
     }
     
    /** 供应商通道ID */
    @ApiModelProperty(value = "供应商通道ID",name = "供应商通道ID",notes = "")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id ;
    /** 供应商通道英文编码 */
    @ApiModelProperty(value = "供应商通道英文编码",name = "供应商通道英文编码",notes = "")
    private String code ;
    /** 供应商通道名称 */
    @ApiModelProperty(value = "供应商通道名称",name = "供应商通道名称",notes = "")
    private String title ;
    /** 账本类型 */
    @ApiModelProperty(value = "账本类型",name = "账本类型",notes = "")
    private Integer balanceType ;
    /** 状态：几类账户（一类、二类） */
    @ApiModelProperty(value = "状态：几类账户（一类、二类）",name = "状态：几类账户（一类、二类）",notes = "")
    private Integer balanceLevel ;
    /** 商户号 */
    @ApiModelProperty(value = "商户号",name = "商户号",notes = "")
    private String merchantNo ;
    /** 签文密钥 */
    @ApiModelProperty(value = "签文密钥",name = "签文密钥",notes = "")
    private String signKey ;
    /** 请求支付地址 */
    @ApiModelProperty(value = "请求支付地址",name = "请求支付地址",notes = "")
    private String payGateway ;
    /** 页面跳转网址 */
    @ApiModelProperty(value = "页面跳转网址",name = "页面跳转网址",notes = "")
    private String pageReturnUrl ;
    /** 服务器通知网址 */
    @ApiModelProperty(value = "服务器通知网址",name = "服务器通知网址",notes = "")
    private String notifyUrl ;
    /** 下家费率 */
    @ApiModelProperty(value = "下家费率",name = "下家费率",notes = "")
    private BigDecimal defaultRate ;
    /** 封顶手续费 */
    @ApiModelProperty(value = "封顶手续费",name = "封顶手续费",notes = "")
    private BigDecimal maxRate ;
    /** 银行费率 */
    @ApiModelProperty(value = "银行费率",name = "银行费率",notes = "")
    private BigDecimal rate ;
    /** 单笔固定手续费 */
    @ApiModelProperty(value = "单笔固定手续费",name = "单笔固定手续费",notes = "")
    private Integer fixedRate ;
    /** T0运营费率 */
    @ApiModelProperty(value = "T0运营费率",name = "T0运营费率",notes = "")
    private BigDecimal defaultRateT0 ;
    /** T0封顶手续费 */
    @ApiModelProperty(value = "T0封顶手续费",name = "T0封顶手续费",notes = "")
    private BigDecimal maxRateT0 ;
    /** T0成本费率 */
    @ApiModelProperty(value = "T0成本费率",name = "T0成本费率",notes = "")
    private BigDecimal rateT0 ;
    /** t0固定收费值 */
    @ApiModelProperty(value = "t0固定收费值",name = "t0固定收费值",notes = "")
    private Integer fixedRateT0 ;
    /** 加密的公钥 */
    @ApiModelProperty(value = "加密的公钥",name = "加密的公钥",notes = "")
    private String publicKey ;
    /** 加密的私钥 */
    @ApiModelProperty(value = "加密的私钥",name = "加密的私钥",notes = "")
    private String privateKey ;
    /** 平台公钥 */
    @ApiModelProperty(value = "平台公钥",name = "平台公钥",notes = "")
    private String platformPublicKey ;
    /** 状态：0-失效 1-有效 */
    @ApiModelProperty(value = "状态：0-失效 1-有效",name = "状态：0-失效 1-有效",notes = "")
    private Integer state ;
    /** 创建时间 */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty(value = "创建时间",name = "创建时间",notes = "")
    private Date createTime ;
    /** 更新时间 */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty(value = "更新时间",name = "更新时间",notes = "")
    private Date updateTime ;
    /** 查询支付地址 */
    @ApiModelProperty(value = "查询支付地址",name = "查询支付地址",notes = "")
    private String queryGateway ;
    /** 代理是否可以上号 */
    @ApiModelProperty(value = "代理是否可以上号",name = "代理是否可以上号",notes = "")
    private Integer agentCanCreateAccount ;
    /** 开始时间 */
    @ApiModelProperty(value = "开始时间",name = "开始时间",notes = "")
    private Integer startTime ;
    /** 结束时间 */
    @ApiModelProperty(value = "结束时间",name = "结束时间",notes = "")
    private Integer endTime ;
    /** 当天交易金额 */
    @ApiModelProperty(value = "当天交易金额",name = "当天交易金额",notes = "")
    private BigDecimal payingMoney ;
    /** 当天上游可交易量 */
    @ApiModelProperty(value = "当天上游可交易量",name = "当天上游可交易量",notes = "")
    private BigDecimal allMoney ;
    /** 最后交易时间 */
    @ApiModelProperty(value = "最后交易时间",name = "最后交易时间",notes = "")
    private Integer lastPayingTime ;
    /** 单笔最小交易额 */
    @ApiModelProperty(value = "单笔最小交易额",name = "单笔最小交易额",notes = "")
    private BigDecimal minMoney ;
    /** 单笔最大交易额 */
    @ApiModelProperty(value = "单笔最大交易额",name = "单笔最大交易额",notes = "")
    private BigDecimal maxMoney ;
    /** 风控状态:0否1是 */
    @ApiModelProperty(value = "风控状态:0否1是",name = "风控状态:0否1是",notes = "")
    private Integer  controlStatus ;
    /** 通道上线状态:0已下线，1上线 */
    @ApiModelProperty(value = "通道上线状态:0已下线，1上线",name = "通道上线状态:0已下线，1上线",notes = "")
    private Integer  offlineStatus ;

}